Skip to content

feat: describe all raw PMU events of the C908 in the k230 device tree - #44

Merged
wangjianxin-canaan merged 1 commit into
kendryte:devfrom
thisisjube:feat-update-pmu-monitoring-events-k230
Oct 1, 2026
Merged

wangjianxin-canaan merged 1 commit into
kendryte:devfrom
thisisjube:feat-update-pmu-monitoring-events-k230

Conversation

@thisisjube

Copy link
Copy Markdown
Contributor

PR Description

Enable using all raw performance monitoring events that the k230/ C908 supports.

Details

The raw-event-to-mhpmcounters property only listed a subset of the performance monitoring events supported by the XuanTie C908 core, so the remaining events could not be used through the SBI PMU extension.

Replace it with a complete list based on Table 14.6 of the XuanTie C908 user manual. Each of the 165 defined events (0x01-0xb4) gets its own entry with a full select mask, mapped to mhpmcounter3-31. Indices the manual marks as "Not defined" are omitted, so they are rejected rather than programmed into a counter.

Related Issues

Closes #43

The raw-event-to-mhpmcounters property only listed a subset of the
performance monitoring events supported by the XuanTie C908 core, so
the remaining events could not be used through the SBI PMU extension.

Replace it with a complete list based on Table 14.6 of the XuanTie
C908 user manual. Each of the 165 defined events (0x01-0xb4) gets its
own entry with a full select mask, mapped to mhpmcounter3-31. Indices
the manual marks as "Not defined" are omitted, so they are rejected
rather than programmed into a counter.

Closes kendryte#43
@wangjianxin-canaan
wangjianxin-canaan merged commit ea816b2 into kendryte:dev Oct 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Describe all raw PMU events of the C908 in the k230 device tree

2 participants